<?php

require_once("ma.abs.php");

class templatema extends MA {

	function templatema() {
	}

	function getName()
	//Return: string containing the name of the MA 
	{
		return "tempalte MA";
	}

	function getTableorSingleData($source,$timeperiods,$report,$obspoints,$type,$view,$filter,$sort,$rowlimit,$arguments)
	/*
	 * Return array[<resolution>][<timestamp>][<obspoint>]=array(<row1_datum1>,<row1_datum2>....),
	 * 				  array(<row2_datum1>,<row2_datum2>....)
	 */
		{
		$ret=array();

		return $ret;
	}

	function getDatasources()
	/*Return: array('<id>'=>'<name1>',
	 ...)*/
	{
		$ret=array();
		return $ret;
	}

	function getObspoints($source)
	/* Return: array[]=array("id"=>"<id>",
	 * 						"name"=>"<name>",
	 * 						"direction"=>"<in|out>",
	 * 						"sampling"=>"<sampling rate>")
	 */
	{
		$ret=array();
		return $ret;
	}

	function getTimeInfo($source)
	/* Return: array[]=array("duration"=>"<seconds>",
	 * 			 "name"=>"<name>",
	 * 			 "plot_from"=>"<plot from id>",
	 *           "first"=>"<first available timeperiod>",
	 *           "last"=>"<last available timeperiod>")
	 */
	{
		$ret=array();
		$ret[]=array('duration'=>300,
			     'name'=>"5 min",
			     'plot_from'=>"",
			     'first'=>,
			     'last'=>);
		$ret[]=array('duration'=>3600,
			     'name'=>"Hour",					
			     'plot_from'=>300,
			     'first'=>,
			     'last'=>);

		return $ret;
	}

}
?>
